-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Decrator for paddle.ones to support *size usage #74494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
66c73c3
to
7037807
Compare
7037807
to
17ed6de
Compare
17ed6de
to
1514449
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74494 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 2
Lines ? 16
Branches ? 0
===========================================
Hits ? 16
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…th_index) (#74547) * [API-Compat] paddle.compat.split is added and tested * [API-Compat] paddle.compat.split is rigorously tested * [API-Compat] Make the forbid_keywords decorator transparent * [API-Compat] Fixed decorator str input * [API-Compat] More unittest & static graph check & updated decorator * [API-Compat] Add paddle.compat.min/max and new PHI kernel (min/max_with_index) * [API-Compat] Add compat.min/max EN doc Attempting to fix integral type gradient computation (rejection) * [WIP][API-Compat] Add dyna-graph unittests for min/max * [WIP][API-Compat] Fixed CPU failure * [API-Compat] Correct min/max_with index gradient behavior * [API-Compat] XPU fix (attempt) * [API-Compat] Updated ForbidKeywordsDecorator * some create api support more usage (#74494) * [API-Compat] Static Graph and CPU end debug * [API-Compat] Resolved conflicts in decorator_utils.py * [API-Compat] Added static graph min/max_with_index op check, simplified implementation * [API-Compat] min/max static graph op test and out tensor support * [API-Compat] Resolved merge conflicts. * [API-Compat] Fixed CPU static graph bugs removed split API for independence. * [API-Compat] Resolved merged conflicts, add symbolic shape test. * [API-Compat] Updated unittests * [API-Compat] Update version year * [API-Compat] Fixed min/max out mechanism * [API-Compat] Try adding even more unittests. --------- Co-authored-by: zhwesky2010 <[email protected]>
PR Category
User Experience
PR Types
Improvements
Description
Pcard-73362
新增了 可变参数*size 用法适配的装饰器,适用于
paddle.ones/emtpy/zeros/...
等创建类API,以下用法全部适用:装饰器编写方式
继承装饰器基类
DecoratorBase
,根据该API的自身逻辑,灵活处理args、kwargs,注意装饰器逻辑必须是兼容升级的,即既要兼容Pytorch的新增用法,也要保留原Paddle的用法。